#ifndef _ENDECRYPT_BLOWFISH_H_
#define _ENDECRYPT_BLOWFISH_H_

#include "common.h"

#define BLOWFISH_ROUNDCOUNT     16
#define BLOWFISH_MAXKEYBYTES    56 /* 448 bits */

typedef struct 
{
    ulng32 p[BLOWFISH_ROUNDCOUNT + 2];
    ulng32 s[4][256];
} BLOWFISH_CTX_S, *PBLOWFISH_CTX_S;

sint32 endecrypt_blowfish_encode(ulng32 *pencode, sint32 size, char *pkey, sint32 key_len);
sint32 endecrypt_blowfish_decode(ulng32 *pdecode, sint32 size, char *pkey, sint32 key_len);

#endif /* _ENDECRYPT_BLOWFISH_H_ */
